﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcToolbox
{
    /// <summary>
    /// Class CustomSelectListItem
    /// </summary>
    public class CustomSelectListItem
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CustomSelectListItem"/> class.
        /// </summary>
        public CustomSelectListItem()
        {
            this.Selected = false;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="CustomSelectListItem"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="text">The text.</param>
        /// <param name="selected">if set to <c>true</c> [selected].</param>
        public CustomSelectListItem(string value, string text, bool selected = false)
        {
            this.Value = value;
            this.Text = text;
            this.Selected = selected;
        }

        /// <summary>
        /// Gets or sets the value.
        /// </summary>
        /// <value>The value.</value>
        public string Value { get; set; }

        /// <summary>
        /// Gets or sets the text.
        /// </summary>
        /// <value>The text.</value>
        public string Text { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether this <see cref="CustomSelectListItem"/> is selected.
        /// </summary>
        /// <value><c>true</c> if selected; otherwise, <c>false</c>.</value>
        public bool Selected { get; set; }
    }
}
